<template>
  <div>
    <h1>父组件：{{ msg }}</h1>
    <button @click="msg = '修改后的msg'">修改</button>
    <child :msg="msg" />
    <child />
    <child />
    <child />
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "父组件的数据",
    };
  },
  methods: {},
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
